<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>罗瑞帝国 - 23215220338-罗瑞</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="header">
        <div class="container">
            <div class="logo">罗瑞帝国</div>
            <div class="search-box">
                <input type="text" placeholder="搜索商品..." id="searchInput">
                <button id="searchBtn">搜索</button>
            </div>
            <nav class="nav">
                <a href="user/profile.html">个人中心</a>
                <a href="cart.html">购物车(<span id="cartCount">0</span>)</a>
                <a href="login.html" id="authLink">登录/注册</a>
            </nav>
        </div>
    </header>

    <!-- 轮播图 -->
    <section class="slider">
        <div class="slides">
            <img src="images/生成华为电脑图片.png" alt="促销活动1">
            <img src="images/71de57a330f54b46.jpg" alt="促销活动2">
            <img src="images/O1CN01HLYRO11KbrMe5v1dt_!!2959331183.avif" alt="促销活动3">
        </div>
    </section>

    <!-- 商品分类 -->
    <section class="categories">
        <h2>商品分类</h2>
        <div class="category-list">
            <div class="category-item" data-category="electronics">
                <img src="images/category1.jpg" alt="电子产品">
                <p>电子产品</p>
            </div>
            <div class="category-item" data-category="clothing">
                <img src="images/category2.jpg" alt="服装服饰">
                <p>服装服饰</p>
            </div>
            <div class="category-item" data-category="books">
                <img src="images/category3.jpg" alt="图书音像">
                <p>图书音像</p>
            </div>
            <div class="category-item" data-category="home">
                <img src="images/category4.jpg" alt="家居生活">
                <p>家居生活</p>
            </div>
            <div class="category-item" data-category="food">
                <img src="images/category5.jpg" alt="食品生鲜">
                <p>食品生鲜</p>
            </div>
        </div>
    </section>

    <!-- 商品展示 -->
    <section class="products">
        <h2>热门商品</h2>
        <div class="product-list" id="productList">
            <!-- 商品将通过JavaScript动态加载 -->
        </div>
    </section>

    <footer class="footer">
        <p>© 2025 罗瑞帝国 - 学号：23215220338 姓名：罗瑞</p>
    </footer>

    <script src="js/utils.js"></script>
    <script src="js/main.js"></script>
</body>
</html>

